package com.zju.cst.cloudApp.entity;

import java.util.HashMap;
import java.util.Map;

public class Message {

	private String session;
	private String userId;
	private String type;
	private String code;
	private Map<String, Object> params = new HashMap<String, Object>();

	public String getSession() {
		return session;
	}

	public void setSession(String session) {
		this.session = session;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public void setParam(String key, Object value) {
		this.params.put(key, value);
	}
	
	public Object getParam(String key) {
		return this.params.get(key) == null ? null : this.params.get(key);
	}
}
